package com.tianma.upload.uploadjartest.prototype.demo01;

import java.util.Date;

/**
 * @author lgc
 * @createDate 2020/8/12 - 17:33
 */
public class Video implements Cloneable{
    private String name;
    private Date createTime;
    public Video(){}

    @Override
    protected Object clone() throws CloneNotSupportedException {
        Video clone =(Video) super.clone();
        clone.setCreateTime((Date)this.createTime.clone());
        return clone;
    }

    public Video(String name, Date createTime) {
        this.name = name;
        this.createTime = createTime;
    }


    @Override
    public String toString() {
        return "Video{" +
                "name='" + name + '\'' +
                ", createTime=" + createTime +
                '}';
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
